home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-06-15 | 4.0 KB | 118 lines | [TEXT/MSWD] |
- (This procedure will log onto GEnie, access the NewsBytes section, and)
- (extract all of the Macintosh stories.)
- (This part does general set ups for the Procedure)
- (Please see the info at the end of this file, too! Thanks.)
-
- :SETUP
- GETGLOBAL W%,5
- GETGLOBAL U%,6
- NUMTOSTRING W%,W$
- NUMTOSTRING U%,U$
- CONCAT W$,/
- CONCAT W$,U$
- COPYINTO A$,W$
- LET EQUAL B%,0
- COMM 1200-N-8-HALF
-
- REDIAL ATDT 2757337
-
- PAUSE
- TYPE h
- PAUSE
- TYPE h
- PROMPT U#
- PAUSE
- (Insert your own password, but leave the ",316" extension!)
- TYPE XXXXX,XXXXXX,316^M
-
- (If you use GEnie in COM mode, delete the next THREE lines)
- (and a couple more at the end of the Procedure. For those of you who)
- (do not use Com mode, this procedure puts you in it temporarily.)
-
- PROMPT <H>elp?
- PAUSE
- TYPE COM^M
- PROMPT P 316?
- TYPE 4^M
- PROMPT P>revious?
- PAUSE
- TYPE 1^M
- PROMPT P>revious?
- PAUSE
- TYPE 1^M
- PROMPT P>revious?
- GETLINE 21,E$
- GOSUB GETLAST
- (Replace the text after the comma with the pathname to save the file)
- (Also, the last part of it ['Mac', in this case] is part of the file name)
- (The date is then appended to the end. Ex: Mac 6/10)
- COPYINTO L$,Hard Disk:Text Stuff:Newsbytes:Mac
- CONCAT L$,A$
- RECA L$
-
- (This part repeats until all the stories are read into the file.)
-
- :REPEAT
- ADD B%,1
- NUMTOSTRING B%,M$
- TYPE M$
- TYPE ^M
- ALERT1 <RETURN>?/TYPE ^M
- ALERT2 <S>croll/TYPE S^M
-
- (For some odd reason, Red Ryder, once it sees the text an ALERT is )
- (alerting for, skips the next PROMPT. My work around is to add a first)
- (PROMPT which will stop that from happening. I know, it's weird, but)
- (it works!)
-
- PROMPT Apple Headlines
- ALERT1 <RETURN>?/TYPE ^M
- ALERT2 <S>croll/TYPE S^M
- PROMPT <P>revious?
- (Check to see if we're on the last story)
- TEST B% = C%
- IF YES JUMPTO DONE
- JUMPTO REPEAT
-
- (All done! Let's log off.)
-
- :DONE
- CLOSE
-
- (If you use GEnie in COM mode all the time, delete the next TWO lines)
- (If you don't, this will return you to your regular mode (from COM mode)
-
- TYPE C^M
- PROMPT <H>elp?
- TYPE BYE^M
- END
-
- (Short 'function' that grabs the last line's menu choice number.)
-
- :GETLAST
- INSTR D%,E$,1,.
- SUBTRACT D%,1
- LEFT$ F$,D%,E$
- STRINGTONUM F$,C%
- RETURN
-
- (That's it! If I have enough time, I may expand this to grab other)
- (stories that the user can define. This is my one of my first real)
- (procedures that actually do some interesting things, so please, tell)
- (me how I did! If there's enough response, it will encourage me to do)
- (another version, adding more options! Feel free to improve upon this,)
- (I only ask that if you do release a new procedure with parts of this)
- (code, that you mail [US Mail or Electronic) me a note saying so.)
- (Of course, if you'd like to include my name, or send me royalties, that's)
- (fine, too!)
- (If you REALLY enjoy this procedure, send me a Bicentennial quarter!)
- (I would enjoy this. This proc did take time, effort, GEnie billing, etc)
- (so, anything would be nice. Anyways, modify this text file to what)
- (you desire [pathnames, etc...], but AFTER writing down my address:)
- ( Jason Haslup, P.O. Box 1963, Cave Creek, AZ 85331)
- ( GEnie: J.HASLUP The Silver Demesnes BBS: 4pm [MST] to 8 am M-F
- ( 24 hours Weekends
- ( 602-997-2460)
- (I'm the Co-Sysop of this fine, NEW board! Please try it!)
- (Thanks for your interest and time!)
- (When's Red Ryder 11 coming out???? :-)